<?

if (MEMBER) {
    foreach ($data->CONTENT as $app) {
        @include 'apps/' . $app . '/trunk/_home_content.php';
        //$widgets[] = $app;
    }
    foreach ($data->ASIDE as $app) {
        @include 'apps/' . $app . '/trunk/_home_aside.php';
        //$widgets[] = $app;
    }
    $data->WIDGETS = implode(',', array_unique(array_merge($data->CONTENT, $data->ASIDE)));
} else {
    foreach ($data->HOME as $app) {
        @include 'apps/' . $app . '/trunk/_home.php';
        //$widgets[] = $app;
    }
    $data->WIDGETS = implode(',', array_unique($data->HOME));
}
?>